import 'package:fish_redux/fish_redux.dart';
import 'package:fluwx/fluwx.dart';

import 'action.dart';
import 'state.dart';

Reducer<SocialLoginState> buildReducer() {
  return asReducer(
    <Object, Reducer<SocialLoginState>>{
      SocialLoginAction.action: _onAction,
    },
  );
}

SocialLoginState _onAction(SocialLoginState state, Action action) {
  final SocialLoginState newState = state.clone();
  return newState;
}
